package org.example.Demo;


import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
public class demo1 {

    @RequestMapping("/hello")
    public String hello(HttpServletRequest request){
        String name = request.getServerName();
        String age = request.getServerName();
        System.out.println(name + " :" + age);
        return name + " :" + age;
    }
}
